package com.System.LearnSystem;

import com.fasterxml.jackson.annotation.JsonIgnore;

public class Student extends User{
	private String studentNo;//学号
	protected Long departmentId;//所属院系id
	private String name;//学生姓名
	protected String phone;//联系电话
	protected String email;//邮箱
	public Student()
	{
		
	}
	public Student(User user)//继承父类信息的方法
	{
		this.id = user.getId();
		this.username = user.getUsername();
		this.password = user.getPassword();
		this.createTime = user.getCreateTime();
		this.updateTime = user.getUpdateTime();
		this.status = user.getStatus();
		this.role = user.getRole();
	}
	
	public String getStudentNo() {
		return studentNo;
	}
	public void setStudentNo(String StudentNo) {
		this.studentNo = StudentNo;
	}
	
	
	public Long getDepartmentId() {
		return departmentId;
	}
	public void setDepartmentId(Long departmentId) {
		this.departmentId = departmentId;
	}
	
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	
	
	public String getPhone() {
		return phone;
	}
	public void setPhone(String phone) {
		this.phone = phone;
	}
	
	
	public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}
}
